﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default4.aspx.cs" Inherits="UserControl_Default4" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../css/style.css" rel="stylesheet" type="text/css" />
    <link href="../css/font.css" rel="stylesheet" type="text/css" />
    <link href="../css/style_ts.css" rel="stylesheet" type="text/css" />
    <asp:Literal ID="ltScript" runat="server"></asp:Literal>

    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"></script>

    <script type="text/javascript" src="http://github.com/malsup/blockui/raw/master/jquery.blockUI.js?v2.31"></script>

    <script type="text/javascript">
        $(document).ready(function() {
            var flag = false;
            var allcb = $('input checkbox');
            allcb.each(function() {
                if ($(this).attr('id') != 'chcAll') {
                    if (this.checked == true) {
                        flag = true;
                        return false;
                    }
                }
            });
            if (!flag) {
                alert(flag);
                $('#btnDelete').click(function() {
                    $.blockUI({
                        message: $('#tallContent'),
                        css: { top: '20%' }
                    });
                    setTimeout($.unblockUI, 2000);
                });
            }
        });
        
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <div>
        <input id="btnDelete" type="button" value="button" />
    </div>
    <div id="tallContent" style="display: none; width: 300px; vertical-align: middle;">
        <div class="attention_top">
            <div class="attention_topleft">
            </div>
            <div class="attention_topmid">
                <table width="98%" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td align="left" valign="middle" class="title">
                            提示信息
                        </td>
                        <td align="right" valign="middle" width="30">
                            <asp:Button ID="btnCloseAll" runat="server" Text="" />
                        </td>
                    </tr>
                </table>
            </div>
            <div class="attention_topright">
                <table border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td>
                            请选择要删除的记录！
                            <br />
                            <input type="button" id="btnConfirm2" title="确认" value="确认" />
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
    </form>
</body>
</html>
